package com.icow.wms.basic.service;

import java.text.ParseException;
import java.util.List;
import com.icow.wms.basic.domain.AgvTask;
import com.icow.wms.basic.domain.BarChart;
import com.icow.wms.basic.domain.LineChart;
import com.icow.wms.basic.domain.PieChart;

/**
 * taskService接口
 * 
 * @author lqq
 * @date 2024-08-06
 */
public interface IAgvTaskService 
{
    /**
     * 查询task
     * 
     * @param id taskID
     * @return task
     */
    public AgvTask selectAgvTaskById(Long id);

    /**
     * 查询task列表
     * 
     * @param agvTask task
     * @return task集合
     */
    public List<AgvTask> selectAgvTaskList(AgvTask agvTask);

    public PieChart selectForPieChart(String orderState);

    /**
     * 新增task
     * 
     * @param agvTask task
     * @return 结果
     */
    public int insertAgvTask(AgvTask agvTask);

    public LineChart selectForLineChart(Integer day) throws ParseException;


    public BarChart selectForBarChart(Integer day) throws ParseException;
    /**
     * 修改task
     * 
     * @param agvTask task
     * @return 结果
     */
    public int updateAgvTask(AgvTask agvTask);

    /**
     * 批量删除task
     * 
     * @param ids 需要删除的taskID
     * @return 结果
     */
    public int deleteAgvTaskByIds(Long[] ids);

    /**
     * 删除task信息
     * 
     * @param id taskID
     * @return 结果
     */
    public int deleteAgvTaskById(Long id);

    public int deleteThirtyDaysAgoData();

    public void setOrderState(String orderId, String orderState, String vehicleName);
}
